Optimal. Leaf size=135 \[ -\frac{2 \sqrt{\pi } \sqrt{b} \sin \left (2 a-\frac{2 b c}{d}\right ) \text{FresnelC}\left (\frac{2 \sqrt{b} \sqrt{c+d x}}{\sqrt{\pi } \sqrt{d}}\right )}{d^{3/2}}-\frac{2 \sqrt{\pi } \sqrt{b} \cos \left (2 a-\frac{2 b c}{d}\right ) S\left (\frac{2 \sqrt{b} \sqrt{c+d x}}{\sqrt{d} \sqrt{\pi }}\right )}{d^{3/2}}-\frac{2 \cos ^2(a+b x)}{d \sqrt{c+d x}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.257704, antiderivative size = 135, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.389, Rules used = {3313, 12, 3306, 3305, 3351, 3304, 3352} \[ -\frac{2 \sqrt{\pi } \sqrt{b} \sin \left (2 a-\frac{2 b c}{d}\right ) \text{FresnelC}\left (\frac{2 \sqrt{b} \sqrt{c+d x}}{\sqrt{\pi } \sqrt{d}}\right )}{d^{3/2}}-\frac{2 \sqrt{\pi } \sqrt{b} \cos \left (2 a-\frac{2 b c}{d}\right ) S\left (\frac{2 \sqrt{b} \sqrt{c+d x}}{\sqrt{d} \sqrt{\pi }}\right )}{d^{3/2}}-\frac{2 \cos ^2(a+b x)}{d \sqrt{c+d x}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3313
Rule 12
Rule 3306
Rule 3305
Rule 3351
Rule 3304
Rule 3352
Rubi steps
\begin{align*} \int \frac{\cos ^2(a+b x)}{(c+d x)^{3/2}} \, dx &=-\frac{2 \cos ^2(a+b x)}{d \sqrt{c+d x}}+\frac{(4 b) \int -\frac{\sin (2 a+2 b x)}{2 \sqrt{c+d x}} \, dx}{d}\\ &=-\frac{2 \cos ^2(a+b x)}{d \sqrt{c+d x}}-\frac{(2 b) \int \frac{\sin (2 a+2 b x)}{\sqrt{c+d x}} \, dx}{d}\\ &=-\frac{2 \cos ^2(a+b x)}{d \sqrt{c+d x}}-\frac{\left (2 b \cos \left (2 a-\frac{2 b c}{d}\right )\right ) \int \frac{\sin \left (\frac{2 b c}{d}+2 b x\right )}{\sqrt{c+d x}} \, dx}{d}-\frac{\left (2 b \sin \left (2 a-\frac{2 b c}{d}\right )\right ) \int \frac{\cos \left (\frac{2 b c}{d}+2 b x\right )}{\sqrt{c+d x}} \, dx}{d}\\ &=-\frac{2 \cos ^2(a+b x)}{d \sqrt{c+d x}}-\frac{\left (4 b \cos \left (2 a-\frac{2 b c}{d}\right )\right ) \operatorname{Subst}\left (\int \sin \left (\frac{2 b x^2}{d}\right ) \, dx,x,\sqrt{c+d x}\right )}{d^2}-\frac{\left (4 b \sin \left (2 a-\frac{2 b c}{d}\right )\right ) \operatorname{Subst}\left (\int \cos \left (\frac{2 b x^2}{d}\right ) \, dx,x,\sqrt{c+d x}\right )}{d^2}\\ &=-\frac{2 \cos ^2(a+b x)}{d \sqrt{c+d x}}-\frac{2 \sqrt{b} \sqrt{\pi } \cos \left (2 a-\frac{2 b c}{d}\right ) S\left (\frac{2 \sqrt{b} \sqrt{c+d x}}{\sqrt{d} \sqrt{\pi }}\right )}{d^{3/2}}-\frac{2 \sqrt{b} \sqrt{\pi } C\left (\frac{2 \sqrt{b} \sqrt{c+d x}}{\sqrt{d} \sqrt{\pi }}\right ) \sin \left (2 a-\frac{2 b c}{d}\right )}{d^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.633191, size = 133, normalized size = 0.99 \[ \frac{2 \left (-\sqrt{\pi } \sqrt{\frac{b}{d}} \sin \left (2 a-\frac{2 b c}{d}\right ) \text{FresnelC}\left (\frac{2 \sqrt{\frac{b}{d}} \sqrt{c+d x}}{\sqrt{\pi }}\right )-\sqrt{\pi } \sqrt{\frac{b}{d}} \cos \left (2 a-\frac{2 b c}{d}\right ) S\left (\frac{2 \sqrt{\frac{b}{d}} \sqrt{c+d x}}{\sqrt{\pi }}\right )-\frac{\cos ^2(a+b x)}{\sqrt{c+d x}}\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.037, size = 146, normalized size = 1.1 \begin{align*} 2\,{\frac{1}{d} \left ( -1/2\,{\frac{1}{\sqrt{dx+c}}}-1/2\,{\frac{1}{\sqrt{dx+c}}\cos \left ( 2\,{\frac{ \left ( dx+c \right ) b}{d}}+2\,{\frac{da-cb}{d}} \right ) }-{\frac{b\sqrt{\pi }}{d} \left ( \cos \left ( 2\,{\frac{da-cb}{d}} \right ){\it FresnelS} \left ( 2\,{\frac{b\sqrt{dx+c}}{\sqrt{\pi }d}{\frac{1}{\sqrt{{\frac{b}{d}}}}}} \right ) +\sin \left ( 2\,{\frac{da-cb}{d}} \right ){\it FresnelC} \left ( 2\,{\frac{b\sqrt{dx+c}}{\sqrt{\pi }d}{\frac{1}{\sqrt{{\frac{b}{d}}}}}} \right ) \right ){\frac{1}{\sqrt{{\frac{b}{d}}}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.47252, size = 640, normalized size = 4.74 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.85053, size = 333, normalized size = 2.47 \begin{align*} -\frac{2 \,{\left ({\left (\pi d x + \pi c\right )} \sqrt{\frac{b}{\pi d}} \cos \left (-\frac{2 \,{\left (b c - a d\right )}}{d}\right ) \operatorname{S}\left (2 \, \sqrt{d x + c} \sqrt{\frac{b}{\pi d}}\right ) +{\left (\pi d x + \pi c\right )} \sqrt{\frac{b}{\pi d}} \operatorname{C}\left (2 \, \sqrt{d x + c} \sqrt{\frac{b}{\pi d}}\right ) \sin \left (-\frac{2 \,{\left (b c - a d\right )}}{d}\right ) + \sqrt{d x + c} \cos \left (b x + a\right )^{2}\right )}}{d^{2} x + c d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos ^{2}{\left (a + b x \right )}}{\left (c + d x\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos \left (b x + a\right )^{2}}{{\left (d x + c\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]